package com.javaweb.service;



import com.javaweb.model.Category;

import java.util.List;

/**
 * @author Wanghai
 * @date 2024/11/3
 */
public interface CategoryService {

    // 通过 ID 删除分类
    public boolean deleteCategoryById(String categoryId);
    // 添加新分类
    public boolean addCategory(Category category);

    // 获取所有分类
    public List<Category> listAllCategories();
}
